package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.ProductStyleMapper;
import com.hcb.micro.dto.ProductStyle;
import com.hcb.micro.service.IProductStyleService;

@Service("ProductStyleService")
public class ProductStyleServiceImpl implements IProductStyleService {

	@Autowired
	ProductStyleMapper ProductStyleMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return ProductStyleMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ProductStyle record) {
		return ProductStyleMapper.insert(record);
	}

	@Override
	public int insertSelective(ProductStyle record) {
		return ProductStyleMapper.insertSelective(record);
	}

	@Override
	public ProductStyle selectByPrimaryKey(Integer id) {
		return ProductStyleMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(ProductStyle record) {
		return ProductStyleMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(ProductStyle record) {
		return ProductStyleMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<ProductStyle> selectByPara(Map<String, Object> para) {
		return ProductStyleMapper.selectByPara(para);
	}

}
